package com.itheima.d5_polymorphic.demo1;

//动物类
public abstract class Animal {
    //功能：喝水
    public void drink() {
        System.out.println("喝水");
    }

    //功能：吃饭
    public abstract void eat();
}
